package com.example.room.entity;

import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * author: WangJunYan
 * package: com.example.wjy.entity
 * date: 2020/6/7
 * time: 16:35
 * 大神的实体，其中的各个字段目前并无实际意义，可通过数据库的具体字段重新设置
 * 请求到网络的数据后会将通过room数据保存到本地数据库，然后获取，这个entity是room所需的组件之一
 */
@Entity
public class Master {

//    @PrimaryKey(autoGenerate = true)
//    long id;
//
//    @ColumnInfo(name = "master_name")
//    String masterName;
//
//    @ColumnInfo(name = "master_type")
//    String masterType;
//
//    public Master(String masterName, String masterType) {
//        this.masterName = masterName;
//        this.masterType = masterType;
//    }
//
//    public long getId() {
//        return id;
//    }
//
//    public void setId(long id) {
//        this.id = id;
//    }
//
//    public String getMasterName() {
//        return masterName;
//    }
//
//    public void setMasterName(String masterName) {
//        this.masterName = masterName;
//    }
//
//    public String getMasterType() {
//        return masterType;
//    }
//
//    public void setMasterType(String masterType) {
//        this.masterType = masterType;
//    }
    @NonNull
    @PrimaryKey
    String userId;

    @ColumnInfo
    String userPwd;

    @ColumnInfo
    String userName;

    @ColumnInfo
    int userAge;

    @ColumnInfo
    String userGrade;

    @ColumnInfo
    String userSpy;

    @ColumnInfo
    String userEmail;

    @ColumnInfo
    String userPid;

    @ColumnInfo
    String userTid;

    @ColumnInfo
    double userMoney;

    @ColumnInfo
    String userLabel1;

    @ColumnInfo
    String userLabel2;

    @ColumnInfo
    String userLabel3;

    @ColumnInfo
    String userLabel4;

    @ColumnInfo
    double userAbility;

    @ColumnInfo
    String userSex;

    public Master(@NonNull String userId, String userPwd, String userName, int userAge, String userGrade, String userSpy, String userEmail, String userPid, String userTid, double userMoney, String userLabel1, String userLabel2, String userLabel3, String userLabel4, double userAbility, String userSex) {

        this.userId = userId;
        this.userPwd = userPwd;
        this.userName = userName;
        this.userAge = userAge;
        this.userGrade = userGrade;
        this.userSpy = userSpy;
        this.userEmail = userEmail;
        this.userPid = userPid;
        this.userTid = userTid;
        this.userMoney = userMoney;
        this.userLabel1 = userLabel1;
        this.userLabel2 = userLabel2;
        this.userLabel3 = userLabel3;
        this.userLabel4 = userLabel4;
        this.userAbility = userAbility;
        this.userSex = userSex;
    }

//    public Master() {
//
//    }

    @NonNull
    public String getUserId() {
        return userId;
    }

    public void setUserId(@NonNull String userId) {
        this.userId = userId;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getUserAge() {
        return userAge;
    }

    public void setUserAge(int userAge) {
        this.userAge = userAge;
    }

    public String getUserGrade() {
        return userGrade;
    }

    public void setUserGrade(String userGrade) {
        this.userGrade = userGrade;
    }

    public String getUserSpy() {
        return userSpy;
    }

    public void setUserSpy(String userSpy) {
        this.userSpy = userSpy;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getUserPid() {
        return userPid;
    }

    public void setUserPid(String userPid) {
        this.userPid = userPid;
    }

    public String getUserTid() {
        return userTid;
    }

    public void setUserTid(String userTid) {
        this.userTid = userTid;
    }

    public double getUserMoney() {
        return userMoney;
    }

    public void setUserMoney(double userMoney) {
        this.userMoney = userMoney;
    }

    public String getUserLabel1() {
        return userLabel1;
    }

    public void setUserLabel1(String userLabel1) {
        this.userLabel1 = userLabel1;
    }

    public String getUserLabel2() {
        return userLabel2;
    }

    public void setUserLabel2(String userLabel2) {
        this.userLabel2 = userLabel2;
    }

    public String getUserLabel3() {
        return userLabel3;
    }

    public void setUserLabel3(String userLabel3) {
        this.userLabel3 = userLabel3;
    }

    public String getUserLabel4() {
        return userLabel4;
    }

    public void setUserLabel4(String userLabel4) {
        this.userLabel4 = userLabel4;
    }

    public double getUserAbility() {
        return userAbility;
    }

    public void setUserAbility(double userAbility) {
        this.userAbility = userAbility;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }
}
